function submitPage(obj) {
	if(UTIL.checkButton(obj)) {
		// 将勾选和未勾选的id拼凑成字符串
		var checkedIds = "";
		var unCheckedIds = "";
		$(".id_box").each(function() {
			if($(this).prop("checked")) {
				checkedIds += $(this).val() + ",";
			} else {
				unCheckedIds += $(this).val() + ",";
			}
		});
		
		if(checkedIds) {
			checkedIds = checkedIds.substring(0, checkedIds.length-1);
		}
		if(unCheckedIds) {
			unCheckedIds = unCheckedIds.substring(0, unCheckedIds.length-1);
		}
		
		// 调用后台接口维护
		var param = {"checkedIds" : checkedIds, "unCheckedIds" : unCheckedIds};
		API.elementOOaEqualsCheckPage(param, function(res) {
			if(res.code == 0) {
				window.location.href="/vocab/element_o_oa_equals_list.htm";
			} else {
				alert(res.desc);
			}
			UTIL.releaseButton(obj);
		});
	}
}

function refresh(obj) {
	if(UTIL.checkButton(obj)) {
		API.elementOOaEqualsInit(function(res) {
			if(res.code == 0) {
				window.location.href="/vocab/element_o_oa_equals_list.htm";
			} else {
				alert(res.desc);
				UTIL.releaseButton(obj);
			}
		});
	}
}
